package bug;

import bug.dao.api.UserDao;
import bug.persistent.*;

import java.util.List;

/**
 * User: ion
 * Date: Aug 30, 2008 - 10:54:08 AM
 */

public class Main3 extends BaseMain {

    public static void main(String[] args) {
        new Main3().run();
    }

    public void run() {

        beginSession();

        User u = userDao.getById(1);
        u.addIssue(new Task("Task 01"));
        u.addIssue(new Task("Task 02"));
        u.addIssue(new Bug("Bug 11"));
        u.addIssue(new Bug("Bug 12"));
        u.addIssue(new Bug("Bug 13"));

        userDao.save(u);

        endSession();
    }
}